package com.example.medical.domain;

public class Shop {

    private int id;
    private String shopName;
    private String address;
    private String phone;

    // 获取店铺编号的方法
    public int getId() {
        return id;
    }

    // 设置店铺编号的方法
    public void setId(int id) {
        this.id = id;
    }

    // 获取店铺名称的方法
    public String getShopName() {
        return shopName;
    }

    // 设置店铺名称的方法
    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    // 获取店铺地址的方法
    public String getAddress() {
        return address;
    }

    // 设置店铺地址的方法
    public void setAddress(String address) {
        this.address = address;
    }

    // 获取店铺联系电话的方法
    public String getPhone() {
        return phone;
    }

    // 设置店铺联系电话的方法
    public void setPhone(String phone) {
        this.phone = phone;
    }

    // 全参构造方法
    public Shop(int id, String shopName, String address, String phone) {
        this.id = id;
        this.shopName = shopName;
        this.address = address;
        this.phone = phone;
    }

    // 默认无参构造方法
    public Shop() {
    }

    @Override
    public String toString() {
        return "Shop{" +
                "id=" + id +
                ", shopName='" + shopName + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}